package cn.smile.bean.entity.core;

import cn.smile.commons.domain.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * 角色信息表
 *
 * @author smile-jt
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("role_info")
public class RoleInfo extends BaseDomain {
    @Serial
    private static final long serialVersionUID = 1852623415879372333L;
    /**
     * 角色Code
     */
    private String roleCode;

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 序号
     */
    private Integer sortNum;

    /**
     * 预定义(true-是, false-否)
     */
    private Boolean predefined;

    /**
     * 是否展示 true-是, false-否
     */
    @TableField(value = "`show`")
    private Boolean show;
}